package com.spatio.serving.basic.service.template.common.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author GuoPengfei
 * @Date 2024/5/21 14:10
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AskSimpleReq {

    @NotEmpty(message = "idempotent_id cant be empty")
    @JsonProperty("idempotent_id")
    private String idempotentId;

    @NotEmpty(message = "question_text cant be empty")
    @JsonProperty("question_text")
    private String questionText;

    @NotNull(message = "question_type cant be null")
    @JsonProperty("question_type")
    private int questionType;

    @JsonProperty("message_id")
    private String messageId;

    @JsonProperty("conversation_id")
    private String difyConversationId;

    @JsonProperty("image_url")
    private String url;

}